home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 2 / Geek_Gadgets_2_2352.bin / lists / ade-gcc.archive.9602.gz / ade-gcc.archive.9602 / 000055_owner-ade-gcc_Wed Feb 14 06:46:39 1996.msg < prev    next >
Internet Message Format  |  1996-02-28  |  2KB

  1. Return-Path: <owner-ade-gcc>
  2. Received: by fishpond (Smail3.1.29.1 #57)
  3.     id m0tmff7-000gYMa; Wed, 14 Feb 96 06:46 EST
  4. Sender: owner-ade-gcc
  5. Received: from ernie.icslab.agh.edu.pl by fishpond with smtp
  6.     (Smail3.1.29.1 #57) id m0tmff1-000gXUC; Wed, 14 Feb 96 06:46 EST
  7. Received: (from kiskra@localhost) by ernie.icslab.agh.edu.pl (8.6.12/8.6.12) id MAA14784; Wed, 14 Feb 1996 12:45:35 +0100
  8. Date: Wed, 14 Feb 1996 12:45:34 +0100 (MET)
  9. From: Kamil Iskra <kiskra@ernie.icslab.agh.edu.pl>
  10. To: Joerg Hoehle <Joerg.Hoehle@gmd.de>
  11. cc: ADE GCC List <ade-gcc@amigalib.com>,
  12.         Amiga GCC List <amiga-gcc-port@nic.funet.fi>
  13. Subject: Re: Amiga-specific attributes implemented as keywords
  14. In-Reply-To: <199602141102.AA29188@diva.gmd.de>
  15. Message-ID: <Pine.SUN.3.91.960214124011.14529A-100000@ernie>
  16. MIME-Version: 1.0
  17. Content-Type: TEXT/PLAIN; charset=US-ASCII
  18. Sender: owner-ade-gcc@amigalib.com
  19. Precedence: bulk
  20.  
  21. On Wed, 14 Feb 1996, Joerg Hoehle wrote:
  22.  
  23. > I mean that usually, you want something like the following:
  24. > in function A:
  25. >    "oh, this is our input, it's so complex that we'll need
  26. >    ... compute stack size as a function of the input ...
  27. >    ah, 40KB of stack before calling function B, so let's reserve
  28. >    that much and call B so that it'll have enough."
  29. > and not:
  30. > at function entry of B:
  31. >    "oh, well, I probably need a bigger stack, but how much, 2KB, 10KB
  32. >    or 100KB?"
  33. > Unfortunately, the latter is what stackextend gives you.
  34.  
  35. Is it? Maybe I still don't understand you (quite probable :-), but as far
  36. as I remember, stackext does the following: 
  37.  
  38. At function entry it calls a stack extension function with one argument:
  39. the amount of stack this function needs for frame. Stack extension
  40. function takes care of allocating new stack chunk if current is not big
  41. enough, setting up frame etc. The same happens when program wants to call
  42. alloca(). 
  43.  
  44. / Kamil Iskra - AMIGA 1200, 68030 50MHz, HDD 850 MB, 10 MB RAM \
  45. | iskra@student.uci.agh.edu.pl  kiskra@ernie.icslab.agh.edu.pl |
  46. | http://student.uci.agh.edu.pl/~iskra                         |
  47. \ PGP public key available via Finger or WWW                   /